<?php /* Smarty version Smarty-3.0.7, created on 2011-08-26 17:51:57
         compiled from "components/datagrid/datagrid.tpl" */ ?>
<?php /*%%SmartyHeaderCode:14817739614e57c11ddabc51-20134892%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'e9a13690d1bf738840cd8e8b6f7515a9fab63bef' => 
    array (
      0 => 'components/datagrid/datagrid.tpl',
      1 => 1314373691,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '14817739614e57c11ddabc51-20134892',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<div class="filterwrapper" <?php echo $_smarty_tpl->getVariable('list')->value['invisible'];?>
>
	<div class="filtertitle"><?php echo $_smarty_tpl->getVariable('list')->value['title'];?>
</div>
  <div class="scrolldivsmall">
	<table id="<?php echo $_smarty_tpl->getVariable('list')->value['name'];?>
_grid" cellspacing="0" class="filtertable">
    <thead>
			<tr id="<?php echo $_smarty_tpl->getVariable('list')->value['name'];?>
_grid_head" class="adminblockheader"></tr>
    </thead>
    <tbody id="<?php echo $_smarty_tpl->getVariable('list')->value['name'];?>
_grid_body">
    </tbody>
  </table>
	</div>
	<?php if (($_smarty_tpl->getVariable('list')->value['hasstatus'])){?>
		<div id="<?php echo $_smarty_tpl->getVariable('list')->value['name'];?>
_status" class="textcenter" style="padding-top:5px;">
		</div>
	<?php }?>
	<?php if ((count($_smarty_tpl->getVariable('buttons')->value)>0)){?>
		<div align="center" style="padding-top:5px;">
			<?php  $_smarty_tpl->tpl_vars['button'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('buttons')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['button']->key => $_smarty_tpl->tpl_vars['button']->value){
?>
				<input type="button" onclick="<?php echo $_smarty_tpl->tpl_vars['button']->value['callfunction'];?>
" name="<?php echo $_smarty_tpl->tpl_vars['button']->value['id'];?>
" id="<?php echo $_smarty_tpl->tpl_vars['button']->value['id'];?>
" value="<?php echo $_smarty_tpl->tpl_vars['button']->value['name'];?>
" />
			<?php }} ?>
		</div>
	<?php }?>
</div>

<?php if (($_smarty_tpl->getVariable('list')->value['export'])){?>
	<button onclick="<?php echo $_smarty_tpl->getVariable('list')->value['name'];?>
_grid.export()">Export</button>
	<div id="<?php echo $_smarty_tpl->getVariable('list')->value['name'];?>
_exportstatus">
	</div>
<?php }?>

<?php if (($_smarty_tpl->getVariable('list')->value['pdf'])){?>
	<div align="right">
		<button onclick="<?php echo $_smarty_tpl->getVariable('list')->value['name'];?>
_grid.pdf()"><?php echo $_smarty_tpl->getVariable('list')->value['pdfButtonName'];?>
</button>
	</div>
<?php }?>

<script language="javascript">
	var <?php echo $_smarty_tpl->getVariable('list')->value['name'];?>
_grid = new DataGrid("<?php echo $_smarty_tpl->getVariable('list')->value['name'];?>
");
	<?php if (($_smarty_tpl->getVariable('list')->value['selectable'])){?>
		<?php echo $_smarty_tpl->getVariable('list')->value['name'];?>
_grid.setSelectable();
	<?php }?>
	<?php if (($_smarty_tpl->getVariable('list')->value['scrollable'])){?>
		<?php echo $_smarty_tpl->getVariable('list')->value['name'];?>
_grid.setScrollable(<?php echo $_smarty_tpl->getVariable('list')->value['rownum'];?>
);
	<?php }?>
	<?php echo $_smarty_tpl->getVariable('list')->value['name'];?>
_grid.refresh();
</script>
